package cn.edu.nwsuaf.studentcenter.aop;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/****
 * 动态数据源
 * @author Fantacy
 *
 */
public class DynamicDataSource extends AbstractRoutingDataSource {


	@Override
	protected Object determineCurrentLookupKey() {
		return DataSourceSwitcher.getDataSource();
	}
}
